package com.ruoyi.project.data.InvalidBooks.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 失效书籍信息对象 sys_failed_books_info
 * 
 * @author ruoyi
 * @date 2024-04-27
 */
public class FailedBooksInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 书名 */
    @Excel(name = "书名")
    private String bookName;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 章节 */
    @Excel(name = "章节")
    private String chapter;

    /** 附件 */
    @Excel(name = "附件")
    private String attachmentPath;

    /** 出版社 */
    @Excel(name = "出版社")
    private String publisher;

    /**  */
    @Excel(name = "")
    private String failureReason;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
    private Date failureDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBookName(String bookName)
    {
        this.bookName = bookName;
    }

    public String getBookName()
    {
        return bookName;
    }
    public void setAuthor(String author)
    {
        this.author = author;
    }

    public String getAuthor()
    {
        return author;
    }
    public void setChapter(String chapter)
    {
        this.chapter = chapter;
    }

    public String getChapter()
    {
        return chapter;
    }
    public void setAttachmentPath(String attachmentPath)
    {
        this.attachmentPath = attachmentPath;
    }

    public String getAttachmentPath()
    {
        return attachmentPath;
    }
    public void setPublisher(String publisher)
    {
        this.publisher = publisher;
    }

    public String getPublisher()
    {
        return publisher;
    }
    public void setFailureReason(String failureReason)
    {
        this.failureReason = failureReason;
    }

    public String getFailureReason()
    {
        return failureReason;
    }
    public void setFailureDate(Date failureDate)
    {
        this.failureDate = failureDate;
    }

    public Date getFailureDate()
    {
        return failureDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bookName", getBookName())
            .append("author", getAuthor())
            .append("chapter", getChapter())
            .append("attachmentPath", getAttachmentPath())
            .append("publisher", getPublisher())
            .append("failureReason", getFailureReason())
            .append("failureDate", getFailureDate())
            .toString();
    }
}
